<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <meta name="language" content="vi"/>
        <?php
        $baseUrl = Yii::app()->request->baseUrl;
        $cs = Yii::app()->getClientScript();
        ?>
        <title><?php echo CHtml::encode($this->pageTitle); ?></title>
        <link rel="stylesheet" href="<?php echo $baseUrl ?>/themes/admincp/css/bootstrap.min.css" />
        <link rel="stylesheet" href="<?php echo $baseUrl ?>/themes/admincp/css/bootstrap-responsive.min.css" />
        <link rel="stylesheet" href="<?php echo $baseUrl ?>/themes/admincp/css/yiistrap.min.css" />
        <link rel="stylesheet" href="<?php echo $baseUrl ?>/themes/admincp/css/maruti-style.css" />
        <link rel="stylesheet" href="<?php echo $baseUrl ?>/themes/admincp/css/maruti-media.css"/>
    </head>

    <body>
        <!--Header-part-->
        <div id="header">

        </div>
        <!--close-Header-part--> 


        <!--top-Header-menu-->
        <div id="user-nav" class="navbar navbar-inverse">
            <?php
            $this->widget('zii.widgets.CMenu', array(
                'encodeLabel' => false,
                'items' => array(
                    array('label' => '<span class="text">Cấu hình</span>', 'url' => array('/admincp/setting/admin/index'), 'visible' => !Yii::app()->user->isGuest),
                    array('label' => '<span class="text">Thoát</span>', 'url' => array('/admincp/logout'), 'visible' => !Yii::app()->user->isGuest),
                ),
            ));
            ?>
        </div>
        <div id="sidebar">
            <?php
            $this->widget('zii.widgets.CMenu', array(
                'encodeLabel' => false,
                'items' => array(
                    array('label' => '<span>Trang chủ</span>', 'url' => array('/admincp')),
                    array('label' => '<span>Giới thiệu</span>', 'url' => array('/admincp/about/admin/index')),
                    array('label' => ' <span>Tin tức</span>', 'url' => array('#'), 'items' => array(
                            array('label' => 'Danh mục tin tức', 'url' => array('/admincp/news/categories/index')),
                            array('label' => 'Danh sách tin tức', 'url' => array('/admincp/news/admin/index')),
                        )),
                    array('label' => '<span>File</span>', 'url' => array('#'), 'items' => array(
                            array('label' => 'Danh mục file', 'url' => array('/admincp/file/categories/index')),
                            array('label' => 'Danh sách file', 'url' => array('/admincp/file/admin/index')),
                        )),
                    array('label' => ' <span>Quảng cáo - Đối tác</span>', 'url' => array('/admincp/adsPartners/admin/index')),
                    array('label' => '<span>Video</span>', 'url' => array('/admincp/video/admin/index')),
                    array('label' => '<span>Hình ảnh</span>', 'url' => array('/admincp/gallery/admin/create')),
                    array('label' => '<span>Liên hệ</span>', 'url' => array('/admincp/setting/admin/contact')),
                    array('label' => '<span class="text">Tài khoản</span>', 'url' => array('#'), 'visible' => !Yii::app()->user->isGuest, 'items' => array(
                            array('label' => 'Thông tin tài khoản', 'url' => array('/admincp/profile')),
                            array('label' => 'Thay đổi thông tin', 'url' => array('/admincp/profile/edit')),
                            array('label' => 'Thay đổi mật khẩu', 'url' => array('/admincp/profile/changepassword')),
                        )),
//                    array('label' => '<i class="icon icon-th-list"></i> <span>Thành viên</span>', 'url' => array('#'), 'active' => Yii::app()->controller->id === 'user', 'items' => array(
//                            array('label' => 'Danh sách thanh viên', 'url' => array('user/'), 'visible' => Yii::app()->user->checkAccess('user/index')),
//                            array('label' => 'Danh sách phân quyền', 'url' => array('authitem/index'), 'visible' => Yii::app()->user->checkAccess('authitem/index')),
//                        ), 'visible' => Yii::app()->user->checkAccess('adminMenu')),
                ),
            ));
            ?>
        </div>
        <?php echo $content; ?>
        <div class="row-fluid">
            <div id="footer" class="span12"> 2013 &copy; DANADIGITAL CMS. Brought to you by <a href="http://danadigital.net/">danadigital.net</a> </div>
        </div>
        <!-- page -->
        <?php
        Yii::app()->getClientScript()->registerCoreScript('jquery', CClientScript::POS_END);
        $cs->registerScriptFile($baseUrl . '/js/admin/init.js', CClientScript::POS_END);
        $cs->registerScriptFile($baseUrl . '/js/jquery.colorbox.js', CClientScript::POS_END);
        ?>
    </body>
</html>